package com.itheima.date8;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;

/*
获取时间日期对象
 */
public class Demo02 {

    public static void main(String[] args) {
        //static now
        LocalDateTime now = LocalDateTime.now();
        System.out.println(now);
        LocalDateTime zuotian = LocalDateTime.of(2021, 8, 2, 11, 11, 11);
        System.out.println(zuotian);
        LocalDate now1 = LocalDate.now();
        System.out.println(now1);
        LocalTime of = LocalTime.of(11, 11,23,854655);
        System.out.println(of);

    }
}
